package main

import "fmt"

type Dog struct {
}
func (d Dog)talk()  {
	fmt.Printf("wow....\n")
}

type Cat struct {
}
func (c Cat)talk()  {
	fmt.Printf("miao....\n")
}
type Sheep struct {
}
func (s Sheep)talk()  {
	fmt.Printf("mie...\n")
}

type Animal interface {
	talk()
}

func talk(a Animal)  {
	a.talk()
}



func main() {
	fmt.Println("ceason")
	talk(Dog{})
	talk(Cat{})
	talk(Sheep{})

}
